package com.alibaba.demo.domain.core.exception;

/**
 * @author Administrator
 * @date 2024/4/30 10:56
 * @description
 */
public class ServiceException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private String code;

    public ServiceException(ServiceExceptionEnum enumTag) {
        super(enumTag.getMessage());
        this.code = enumTag.getCode();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
